package com.hilihili.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.hilihili.mapper.EmojilistMapper;
import com.hilihili.domain.entity.Emojilist;
import com.hilihili.service.IEmojilistService;

/**
 * emoji表情Service业务层处理
 * 
 * @author xhc
 * @date 2023-11-29
 */
@Service
public class EmojilistServiceImpl implements IEmojilistService 
{
    @Autowired
    private EmojilistMapper emojilistMapper;

    /**
     * 查询emoji表情
     * 
     * @param id emoji表情主键
     * @return emoji表情
     */
    @Override
    public Emojilist selectEmojilistById(Long id)
    {
        return emojilistMapper.selectEmojilistById(id);
    }

    /**
     * 查询emoji表情列表
     * 
     * @param emojilist emoji表情
     * @return emoji表情
     */
    @Override
    public List<Emojilist> selectEmojilistList(Emojilist emojilist)
    {
        return emojilistMapper.selectEmojilistList(emojilist);
    }

    /**
     * 新增emoji表情
     * 
     * @param emojilist emoji表情
     * @return 结果
     */
    @Override
    public int insertEmojilist(Emojilist emojilist)
    {
        return emojilistMapper.insertEmojilist(emojilist);
    }

    /**
     * 修改emoji表情
     * 
     * @param emojilist emoji表情
     * @return 结果
     */
    @Override
    public int updateEmojilist(Emojilist emojilist)
    {
        return emojilistMapper.updateEmojilist(emojilist);
    }

    /**
     * 批量删除emoji表情
     * 
     * @param ids 需要删除的emoji表情主键
     * @return 结果
     */
    @Override
    public int deleteEmojilistByIds(Long[] ids)
    {
        return emojilistMapper.deleteEmojilistByIds(ids);
    }

    /**
     * 删除emoji表情信息
     * 
     * @param id emoji表情主键
     * @return 结果
     */
    @Override
    public int deleteEmojilistById(Long id)
    {
        return emojilistMapper.deleteEmojilistById(id);
    }
}
